import { BinaryDecision, DecisionMapping } from "framework/FSM/DecisionTree/Decision";
import { DecisionTreeNode } from "framework/FSM/DecisionTree/DecisionTreeNode";
 
export class DecisionActionRoleNotEqual <T extends IStateArg<Creep>> extends BinaryDecision<T>
{
    private statekey:string;
    constructor(statekey:string,trueNode?:DecisionTreeNode)
    {
        super(trueNode);
        this.statekey = statekey;
    }
    public testValue(arg:T): boolean
    {
        return arg.entity.ActiveRole != this.statekey
      
        // return true;
    }

    value: any;


    public setValue(val: any)
    {
        this.value = val;
    }
}

